import request from '@/utils/request'

export function getPageList(page,size) {
  return request({
    url: '/log/page',
    method: 'get',
    params: {
        page,
        size
    }
  })
}

export function del(id) {
  return request({
    url: '/log/'+id,
    method: 'delete'
  })
}


export function add(content) {
  return request({
    url: '/log/',
    method: 'post',
    data:{content}
  })
}

export function update(id,content) {
  return request({
    url: '/log/'+id,
    method: 'put',
    data:{content}
  })
}
